package org.br.erp.rfq.xbj.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.br.erp.rfq.xbj.entity.Scmxjditem;
import org.br.erp.rfq.xbj.entity.Scmxjd;
import com.baomidou.mybatisplus.extension.service.IService;
import org.br.erp.rfq.xbj.vo.ScmVendorUnQuoList;
import org.br.erp.rfq.xbj.vo.ScmxjdVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 询价单
 * @Author: jeecg-boot
 * @Date:   2023-09-16
 * @Version: V1.0
 */
public interface IScmxjdService extends IService<Scmxjd> {

	/**
	 * 添加一对多
	 *
	 * @param scmxjd
	 * @param scmxjditemList
	 */
	public void saveMain(Scmxjd scmxjd,List<Scmxjditem> scmxjditemList) ;
	
	/**
	 * 修改一对多
	 *
   * @param scmxjd
   * @param scmxjditemList
	 */
	public void updateMain(Scmxjd scmxjd,List<Scmxjditem> scmxjditemList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);



	public IPage<Scmxjd> getXjdList(IPage<Scmxjd> page, QueryWrapper<Scmxjd> queryWrapper);


	public void updateXJDStatus(List<Map> ids);


	public void updatevendorid(List<Map> ids);

	public List<ScmVendorUnQuoList> selectVendorUnQuoList(IPage<ScmVendorUnQuoList> page,QueryWrapper<ScmVendorUnQuoList> queryWrapper);


	public JSONObject getXSZInfo(String jsonObject);


	public List<ScmxjdVo> getVendorQuoList(IPage<Scmxjd> page,String bjstatus);


	public List<ScmxjdVo> getNotPOXjdAndQuoList(IPage<Scmxjd> page,String bjstatus,QueryWrapper<Scmxjd> queryWrapper);


	public JSONArray getReqVendorInfo(String xjdid);
}
